# $Id: Makefile,v 1.13 2010/04/01 12:42:19 fabio Exp $

CC = gcc
LIBS = -pthread `pkg-config --libs gtk+-2.0` -lcurl -lxml2 -lsoup-2.4 -lgthread-2.0
CFLAGS = -pthread -Wall -O2 -g `pkg-config --cflags gtk+-2.0` -I /usr/include/libxml2 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2
OBJECTS = chrono.o conf.o twitter.o

.c:
	$(CC) $(CFLAGS) -o $@ $< $(LIBS)

all: $(OBJECTS)
	$(CC) $(CFLAGS) $(LIBS) $(OBJECTS) pomodoro.c -o pomodoro

install:
	sudo install pomodoro /usr/local/bin

clean:
	rm -f pomodoro *.o *~
